Error invalid index to scalar variable how to solve when using shape function

join shbcf.ru